<template>
  <div class="click-login">
    <button @click="handleClick">{{LoginText}}</button>
  </div>
</template>

<script>
export default {
  props: ["LoginText"],
  methods: {
    handleClick() {
      console.log("按钮子组件被点击了");
      this.$emit("clicked");
    }
  }
};
</script>

<style lang="less" scoped>
.click-login {
  text-align: center;
  margin-top: 50px;
  button {
    width: 88.333vw;
    height: 12.333vw;
    border-radius: 13.333vw;
    background-color: #5f88ca;
    border: none;
    color: #ffffff;
    font-size: 5vw;
  }
}
</style>